<template>
	<view class="feedback">
		<comHead :title="$t('grzx.yjfk') " :isLeft="true" :isRight="false"></comHead>
		<view class="textareaBox">
			<textarea value="" :placeholder="$t('grzx.qmsnyddwt')" v-model="value" />
		</view>
		<view class="btn" @click="doAddUserMessage">
			<text>{{$t('grzx.tj')}}</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value: ""
			}
		},
		methods: {
			async doAddUserMessage() {
				const res = await this.$myRequest({
					url: 'api/user/doAddUserMessage',
					data: {
						remark:this.value
					}
				})
				if (res.code == 1) {
					console.log(res)
					this.$tools.showTx(res.msg)
				}
			},
		}
	}
</script>

<style lang="less" scoped>
	.feedback {
		display: flex;
		flex-direction: column;
		align-items: center;
		height: 100vh;


		.textareaBox {
			width: 670rpx;
			height: 362rpx;
			// background: rgba(#333333, 0.5);
			background-color: rgba(40, 46, 81, 0.6);
			border-radius: 30rpx;
			padding: 30rpx;
			box-sizing: border-box;
			margin-top: 30rpx;

			textarea {
				font-size: 30rpx;
				color: #fff;
			}
		}

		.btn {
			width: 682rpx;
			height: 80rpx;
			background: linear-gradient(270deg, #5F58FD 0%, #62B6FC 100%);
			display: flex;
			align-items: center;
			justify-content: center;
			font-size: 30rpx;
			color: #fff;
			border-radius: 60rpx;
			margin-top: 50rpx;
		}
	}
</style>